<template>
	<view class="page">
    <user-recycle v-if="isAdmin == 0"></user-recycle>
    <admin-recycle v-if="isAdmin == 1 || isAdmin == 2"></admin-recycle>
	</view>
</template>

<script>
import userRecycle from '../../components/userRecycle/userRecycle.vue';
import adminRecycle from '../../components/adminRecycle/adminRecycle.vue';
export default {
  components: {
		userRecycle,
    adminRecycle
	},
	data() {
		return {
      userinfo:[],
      isAdmin:0
		};
	},
	onShow() {
    this.userinfo =  uni.getStorageSync('user').data[0]
    this.isAdmin = this.userinfo.isAdmin
	},

	methods: {
   
	}
};
</script>

<style lang="scss" scoped>
</style>
